package com.ruoyi.home.service.impl;

import com.ruoyi.home.domain.ScheduleVo;
import com.ruoyi.home.mapper.ScheduleVoMapper;
import com.ruoyi.home.service.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 梁国瑞
 * @version 1.0
 */
@Service("homeScheduleService")
public class ScheduleServiceImpl implements ScheduleService {

    @Autowired
    private ScheduleVoMapper scheduleVoMapper;

    @Override
    public List<ScheduleVo> getSchedule(Long userId, String month) {
        return scheduleVoMapper.getSchedulesByUserId(userId, month);
    }
}
